package com.baitiaojun.system.admin.mapper.permission;

import com.baitiaojun.mybatisplus.core.basemapper.MyBaseMapper;
import com.baitiaojun.system.admin.pojo.SysUserRoleDO;

public interface UserRoleMapper extends MyBaseMapper<SysUserRoleDO> {

    default boolean insert(Long userId, Long roleId) {
        return insert(new SysUserRoleDO(userId, roleId)) == 1;
    }
}
